package com.flyu.myThread.Runable;

public class MyRunable implements Runnable{

    @Override
    public void run() {
        for (int i = 0; i < 50; i++) {
            System.out.println("子线程正在执行："+i);

        }
    }

    public static void main(String[] args) {
        // main主线程
        MyRunable myRunable = new MyRunable();
        Thread thread = new Thread(myRunable);
        thread.start();
        for (int i = 0; i < 200; i++) {
            System.out.println("主线程正在执行："+i);
        }
    }
}
